import { Helmet } from 'react-helmet-async';
import { useSearchParams } from 'react-router-dom';
import { DictDataView } from 'src/sections/dict-management/dict-data-view';

export default function DictDataPage() {
  const [searchParams] = useSearchParams();
  const typeId = searchParams.get('typeId');
  const typeName = searchParams.get('typeName');

  return (
    <>
      <Helmet>
        <title>{typeName ? `${typeName} - 字典数据` : '字典数据'}</title>
      </Helmet>
      <DictDataView typeId={typeId} typeName={typeName} />
    </>
  );
}
